package cn.ciis.sys.taxonomy;


import cn.ciis.basic.base.BaseService;
import cn.ciis.basic.model.Taxonomy;
import com.jfinal.plugin.activerecord.Model;

import java.util.List;

/**
 * 角色管理
 */
public class TaxonomyAdminService extends BaseService {

    private Taxonomy dao = new Taxonomy().dao();

    @Override
    public Model getDao() {
        return dao;
    }


    public List<Taxonomy> getTaxonomyList() {
        return dao.find("select * from sys_taxonomy where id <> 1");
    }

    public List<Taxonomy> getTaxonomy() {
        return dao.find("SELECT * FROM `sys_taxonomy` WHERE isEnable=1 and id <> 1");
    }

}
